﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DevExpress.Xpf.Editors.Settings;
using System.IO;
using System.Windows.Media.Imaging;
using System.Windows.Data;
using DevExpress.Xpf.Editors;
using DevExpress.Xpf.Utils;
using DevExpress.Xpf.Core.WPFCompatibility;
using DevExpress.Xpf.NavBar;

using sLightLibrary.BasicApp.Views.Forms.User;




namespace sLightLibrary.BasicApp.Views.Controls.CommandControls
{
    public partial class listBaseMenuBar : UserControl
    {
        public listBaseMenuBar()
        {
            InitializeComponent();
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            ((ComboBoxEditSettings)cboGroupIntervals.EditSettings).ItemsSource = new string[] {"Alphabetical", "Month", "Year", "Range", "CustomInterval", "None"};
            ((ComboBoxEditSettings)lokLayout.EditSettings).ItemsSource = new string[] {"Default"};
            ((ComboBoxEditSettings)lokFilter.EditSettings).ItemsSource = new string[] {"Today", "This Week", "This Month", "This Quarter", "This Year", "My Records", "All Records"};
        }

        private void tbrSaveLayout_Click(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            SaveLayoutForm frmSaveLayout = new SaveLayoutForm();
            frmSaveLayout.Show();
        }

        private void tbrPrint_Click(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e)
        {
            PrintForm frmPrint = new PrintForm();
            frmPrint.Show();
        }

    }
}
